package com.lanou.service;

import com.github.pagehelper.PageInfo;
import com.lanou.bean.CompanyBean;
import com.lanou.bean.UserComments;
import com.lanou.utils.AjaxResult;
import org.springframework.stereotype.Repository;

/**
 * Created by dllo on 18/3/12.
 */
@Repository
public interface CompanyService {

    /**
     * zfy
     * 实现查询公司下订单信息的Mapper接口
     * @param cid
     * @return
     */
    AjaxResult getAllOrderInfoByCid(Integer cid);

    PageInfo<CompanyBean> cityCompany(String city, Integer pageNo, Integer pageSize);

    PageInfo<CompanyBean> areaTypePriceCompany(String city,String area,String type,String price,String address,String style,Integer pageNo,Integer pageSize,String sortStr);


    PageInfo<UserComments> getAllComments(Integer company_id, String state, String commentLevel,Integer pageNum, Integer pageSize);

    AjaxResult getAVGScore(Integer company_id);
}
